package com.groupseven.backend.util;

import com.groupseven.backend.domain.User.User;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

public class ShiroUtils {
    public static Subject getSubject()
    {
        return SecurityUtils.getSubject();
    }
    public static User getUser()
    {
        User user = null;
        Object obj = getSubject().getPrincipal();
        return user;
    }
}
